/*
 * @Description: 待鉴定列表导航包裹组件
 * @Author: Rfan
 * @Date: 2022-08-02 13:58:08
 * @LastEditTime: 2022-08-02 14:10:00
 */

import { usePendingListContext } from '../contexts/PendingListContext';
import UFANav, { IUFAChangeCallback } from '@/components/UFANav';

const PageSidebar = () => {
  const { setSelectFondId, setSelectAT, setSelectATId } = usePendingListContext();

  const navChange = ({ fondId, fondItem, atId, atItem }: IUFAChangeCallback) => {
    console.log('change', { fondId, fondItem, atId, atItem });
    setSelectFondId(fondId);
    setSelectAT(atItem);
    setSelectATId(atId);
  };

  return (
    <>
      <UFANav onChange={navChange} />
    </>
  );
};

export default PageSidebar;
